import {Injectable} from '@angular/core';
import {HttpUtilService} from "../../../services/http/http-util.service";
import {LoginUser} from "../../../entities/user/login-user";
import {Observable} from "rxjs";

@Injectable()
export class LoginHttpService {

    private loginServiceName = 'login'

    constructor(private http: HttpUtilService) {
    }

    public login(account: string, password: string): Observable<LoginUser> {
        return this.http.post<LoginUser>(this.loginServiceName + '/ps', {account, password},false )
    }
}
